package com.example.springsecuritydemo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/13 16:37
 */
@Data
@TableName(value = "users")
@EqualsAndHashCode(callSuper = false)
public class Users {

    @ApiModelProperty(value = "用户id", example = "123",hidden = true)
    @TableField("user_id")
    @TableId(type = IdType.AUTO)
    private String userId;

    @ApiModelProperty(value = "用户名称", example = "张三")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "用户密码", example = "456")
    @TableField("user_pwd")
    private String userPwd;
}
